package com.example.mobifin_busticket.views.dialogs;

import com.example.mobifin_busticket.R;
import com.example.mobifin_busticket.views.activities.TicketBookingSummaryScreen;

import android.app.Dialog;
import android.content.Context;
import android.view.View;
import android.view.Window;
import android.widget.Button;
import android.widget.TextView;

public class BoadingPointDetailsDialog extends Dialog implements
		android.view.View.OnClickListener {
	Context mcontext;
	String PickupLoction, pickUpLocationLandMark, pickUpLocationAddress;
	TextView tvLocation, tvLandmark, tvAddress;
	Button btn_ok;

	public BoadingPointDetailsDialog(Context context, String pickupLoction,
			String pickUpLocationLandMark, String pickUpLocationAddress) {
		// TODO Auto-generated constructor stub
		super(context);
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		setContentView(R.layout.boarding_point_details_dialog);
		tvLocation = (TextView) findViewById(R.id.tvLocation);
		tvLandmark = (TextView) findViewById(R.id.tvLandmark);
		tvAddress = (TextView) findViewById(R.id.tvAddress);
		btn_ok = (Button) findViewById(R.id.btnOk);
		btn_ok.setOnClickListener(this);
		this.PickupLoction = pickupLoction;
		this.pickUpLocationLandMark = pickUpLocationLandMark;
		this.pickUpLocationAddress = pickUpLocationAddress;

		tvLocation.setText(PickupLoction);
		tvLandmark.setText(pickUpLocationLandMark);
		tvAddress.setText(pickUpLocationAddress);
	}

	@Override
	public void onClick(View v) {
		// TODO Auto-generated method stub
		switch (v.getId()) {
		case R.id.btnOk:
			dismiss();

			break;

		default:
			break;
		}
	}

}
